//
//  UpdatePolicyManager.h
//  zhijiansuzhou
//
//  Created by 度周末网络-王腾 on 16/5/24.
//  Copyright © 2016年 Suzhou fish Information Technology Co., Ltd. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface UpdatePolicyEntity : NSObject

// 0: 无需更新 1:按需更新 2:强制更新
@property (nonatomic,strong) NSString *needUpdate;

@property (nonatomic,strong) NSString *updateMsg;

@property (nonatomic,strong) NSString *versionLink;

// 是否开启推送：1：开启；2：未开启
@property (nonatomic,strong) NSString *lastUpdateBy;

@end


@interface UpdatePolicyManager : NSObject

+ (instancetype)sharedManager;

/**
 *  保存更新策略数据
 *
 *  @param dicData
 */
-(void)saveUpdatePolicyData:(NSDictionary *)dicData;

-(void)setUpUpdatePolicy;

-(void)updatePushStatus:(NSString *)pushStatus;

/**
 *  获取缓存的更新策略数据
 *
 *  @return
 */
-(UpdatePolicyEntity *)loadUpdatePolicyData;
   

@end



